package com.hyzx.qbasic.admin.domain.dao;

import com.hyzx.qbasic.admin.model.po.BusinessLogPO;
import com.hyzx.qbasic.admin.model.po.ErrorLogPO;
import com.hyzx.qbasic.admin.model.po.UserLoginLogPO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by 黄江华 on 2017/9/22
 */

public interface LogMapper {

    int addUserLoginLog(UserLoginLogPO logInfo);

    int addBusinessLog(BusinessLogPO logInfo);

    List<BusinessLogPO> getBusinessLogList(@Param("beginTime") Date beginTime, @Param("endTime") Date endTime,
                                           @Param("minResponseTime") Integer minResponseTime, @Param("maxResponseTime") Integer maxResponseTime);

    int addErrorLog(ErrorLogPO logInfo);

    List<ErrorLogPO> getErrorLogList(@Param("beginTime") Date beginTime, @Param("endTime") Date endTime);

    ErrorLogPO getErrorLogDetail(int logId);
}
